import request from '@/utils/request'

// 删除
export function deleteOutitems(params) {
  return request({
    url: '/operatingCenter/outItems/deleteByPrimaryKey',
    method: 'POST',
    params
  })
}

// 修改
export function updateOutitems(data) {
  return request({
    url: '/operatingCenter/outItems/updateByPrimaryKeySelective',
    method: 'POST',
    data
  })
}

// 添加
export function insertOutitems(data) {
  return request({
    url: '/operatingCenter/outItems/insertSelective',
    method: 'POST',
    data
  })
}

// 项目名称查询
export function selectProjects(params) {
  return request({
    url: '/operatingCenter/outItems/projects',
    method: 'POST',
    params
  })
}

// 分页条件查询
export function getOutitemsList(params) {
  return request({
    url: '/operatingCenter/outItems/selectPage',
    method: 'POST',
    params
  })
}

// 修改查询
export function selectOutitems(params) {
  return request({
    url: '/operatingCenter/outItems/selectByPrimaryKey',
    method: 'POST',
    params
  })
}

// 外联单位名称查询
export function selectOutitemsCompany(params) {
  return request({
    url: '/operatingCenter/outItems/selectCompany',
    method: 'POST',
    params
  })
}
